import { _decorator, Component, Node } from 'cc';
import { tgxSceneUtil, tgxUIMgr } from '../../core_tgx/tgx';
import { SceneDef } from '../../scripts/SceneDef';
import { UISettings } from '../ui_settings/UISettings';
import { UINotice } from '../ui_notice/UINotice';
import { UIMail } from '../ui_mail/UIMail';
const { ccclass, property } = _decorator;

@ccclass('MenuBar')
export class MenuBar extends Component {
    start() {

    }

    update(deltaTime: number) {
        
    }

    onBtnSettingsClicked(){
        tgxUIMgr.inst.showUI(UISettings);
    }

    onBtnNoticeClicked(){
        tgxUIMgr.inst.showUI(UINotice);
    }

    onBtnMailClicked(){
        tgxUIMgr.inst.showUI(UIMail);
    }

    onBtnLuckyClicked(){

    }

    onBtnDailyClicked(){

    }

    onBtnBackClicked(){
        tgxSceneUtil.loadScene(SceneDef.LOBBY);
    }
}


